package com.lagou.xm.io.pojo;

import com.lagou.xm.io.enums.SQLTypeEnum;

/**
 * @author XM,Email is huangwei_xm@163.com
 * @ClassName SqlStatement
 * @Package com.lagou.xm.io.pojo
 * @Description 存储解析出来的Mapper.xml配置
 * @since 2020/9/24 21:59
 * @Copyright: 训练营
 */
public class MappedStatement {

    /**
     * statementId：namespace + selectId
     */
    private String id;
    /**
     * 参数类型
     */
    private Class<?> parameterType;
    /**
     * 返回值类型
     */
    private Class<?> resultType;
    /**
     * sql
     */
    private String sql;

    /**
     * sql 类型
     * @return
     */
    private SQLTypeEnum sqlTypeEnum;

    public SQLTypeEnum getSqlTypeEnum() {
        return sqlTypeEnum;
    }

    public void setSqlTypeEnum(SQLTypeEnum sqlTypeEnum) {
        this.sqlTypeEnum = sqlTypeEnum;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Class<?> getParameterType() {
        return parameterType;
    }

    public void setParameterType(Class<?> parameterType) {
        this.parameterType = parameterType;
    }

    public Class<?> getResultType() {
        return resultType;
    }

    public void setResultType(Class<?> resultType) {
        this.resultType = resultType;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }
}
